<?php
namespace YmPhp\Admin\Models\Channel;

use YmPhp\Admin\Models\BasicModel;
use YmPhp\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use YmPhp\Admin\Traits\ModelTree;
use Spatie\EloquentSortable\Sortable;

class WechatMenu extends BasicModel implements Sortable
{
    use HasDateTimeFormatter;
    use SoftDeletes;
    use ModelTree;

    protected $table = 'channel_wechat_menu';

    protected $primaryKey = 'id';

    protected $titleColumn = 'title';

    protected $orderColumn = 'sort';

    protected $parentColumn = 'pid';

}
